package com.xteam.xnetworkdisk.sys.controller;

import java.util.Arrays;
import java.util.Map;

import com.xteam.xnetworkdisk.utils.PageUtils;
import com.xteam.xnetworkdisk.utils.R;
import com.xteam.xnetworkdisk.vo.SettingsModifyVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.xteam.xnetworkdisk.sys.entity.LoginHistoryEntity;
import com.xteam.xnetworkdisk.sys.service.LoginHistoryService;




/**
 * 
 *
 * @author xiaozhiyong
 * @email xiaozhiyong03@gmail.com
 * @date 2024-08-19 10:35:03
 */
@RestController
@RequestMapping("sys/loginhistory")
public class LoginHistoryController {
    @Autowired
    private LoginHistoryService loginHistoryService;


    /**
     * 获取登录历史
     * @return
     */
    @GetMapping("getLoginHistory")
    public R getLoginHistory(){
        R result = loginHistoryService.getLoginHistory();
        return result;
    }
}
